package org.nf.web.common.convertor;

import org.nf.web.common.TypeConvertor;

/**
 * @author zhu
 * @date 2024-05-16
 */
public class DoubleConvertor implements TypeConvertor {
    @Override
    public Object convert(String requestParam) {
        return Double.valueOf(requestParam);
    }

    @Override
    public boolean supports(Class<?> type) {
        return type.equals(Double.class) || type.equals(Double.TYPE);
    }
}
